﻿#ifndef JOINCOMPANYWIDGET_H
#define JOINCOMPANYWIDGET_H

#include <QDialog>
#include "companyservice.h"
#include "company.h"

namespace Ui {
class JoinCompanyWidget;
}

class JoinCompanyWidget : public QDialog
{
    Q_OBJECT

public:
    explicit JoinCompanyWidget(QWidget *parent = nullptr);
    ~JoinCompanyWidget();

    void showAndClear();

signals:
    void joinCompanySuccess();

private slots:
    void on_pushButtonCancel_clicked();

    void on_pushButtonQuery_clicked();

    void on_pushButtonJoin_clicked();

private:
    Ui::JoinCompanyWidget *ui;

    CompanyService companyService;
};

#endif // JOINCOMPANYWIDGET_H
